{% extends 'PortalContraCulturaBundle::base-public.html.twig' %}
{% block body %}
	<body class="login-layout">
	{% block content %}
		<div class="main-container container-fluid">
			<div class="main-content">
				<div class="row-fluid">
					<div class="span12">
						<div class="login-container">
							<div class="row-fluid">
								<div class="center">
									<h1>										
										<span class="red">Admin</span>
										<span class="white">System</span>
									</h1>									
								</div>
							</div>

							<div class="space-6">								
							</div>
							<div class="row-fluid">
								<div class="position-relative">
									<div id="login-box" class="login-box visible widget-box no-border">
										{% if error %}
			    							{% if error.message|upper == 'BAD CREDENTIALS' %}
												<div class="alert alert-error"><i class="icon-remove"></i>&nbsp;Usuário ou Senha Inválidos</div>
											{% else %}
												<div class="alert alert-error"><i class="icon-remove"></i>&nbsp;Não foi possível estabelecer conexão</div>
											{% endif %}										
										{% endif %}
										<div class="widget-body">
											<div class="widget-main">
												<h4 class="header gray lighter bigger">													
													Informe seus dados de acesso
												</h4>

												<div class="space-6"></div>

												<form action="{{ path('login_check') }}" method="post">
													<fieldset>
														<label>
															<span class="block input-icon input-icon-right">
																<input type="text" class="span12" placeholder="Login"  id="username" name="_username" value="{{ last_username }}" required />
																<i class="icon-user"></i>
															</span>
														</label>

														<label>
															<span class="block input-icon input-icon-right">
																<input type="password" class="span12" placeholder="Senha" name="_password" id="_password" required />
																<i class="icon-lock"></i>
															</span>
														</label>

														<div class="space"></div>

														<div class="clearfix">
															<button type='submit' class="width-35 pull-right btn btn-small btn-primary">
																<i class="icon-key"></i>
																Acessar
															</button>
														</div>

														<div class="space-4"></div>
													</fieldset>
												</form>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	{% endblock %}	
	</body>
{% endblock %}